package com.mvp.shq.washer.ui.shop.mall;

import com.mvp.shq.washer.base.BaseModel;
import com.mvp.shq.washer.base.BasePresenter;
import com.mvp.shq.washer.base.BaseView;
import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.shop.Product;
import com.mvp.shq.washer.entity.shop.ShopBanner;
import com.mvp.shq.washer.entity.shop.result.ProductResult;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by shq1 on 2017/9/29.
 */

public interface MallConstract {
    interface View extends BaseView{
        void getRecommentProductS(List<Product> list);
        void getHotProductS(List<Product> list);
        void getBannerS(List<ShopBanner> list);
    }
    interface Model extends BaseModel{
        Observable<BaseResult<ProductResult>> getRecommentProduct();
        Observable<BaseResult<ProductResult>> getHotProduct();
        Observable<BaseResult<List<ShopBanner>>> getBanner();
    }
    abstract class Presenter extends BasePresenter<Model,View>{
        abstract void getRecommentProduct();
        abstract void getHotProduct();
        abstract void getBanner();
    }
}
